home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / Includes_and_Autodocs_3.5 / include / gadgets / chooser.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-29  |  3.3 KB  |  111 lines

  1. #ifndef GADGETS_CHOOSER_H
  2. #define GADGETS_CHOOSER_H
  3.  
  4. /*
  5. **    $VER: chooser.h 44.1 (19.10.1999)
  6. **    Includes Release 44.1
  7. **
  8. **  Definitions for the Chooser BOOPSI class
  9. **
  10. **    (C) Copyright 1987-1999 Amiga, Inc.
  11. **        All Rights Reserved
  12. */
  13.  
  14. /*****************************************************************************/
  15.  
  16. #ifndef REACTION_REACTION_H
  17. #include <reaction/reaction.h>
  18. #endif
  19.  
  20. #ifndef INTUITION_GADGETCLASS_H
  21. #include <intuition/gadgetclass.h>
  22. #endif
  23.  
  24. /* Predefined Minimum dimensions for safe operation.
  25.  */
  26. #define CHOOSER_MinWidth           36
  27. #define CHOOSER_MinHeight          10
  28.  
  29. /*****************************************************************************/
  30.  
  31. /* Chooser node attributes.
  32.  */
  33. #define CNA_Dummy            (TAG_USER+0x5001500)
  34.  
  35. #define CNA_Text            (CNA_Dummy+1)
  36.     /* (STRPTR) Text for the node. */
  37.  
  38. #define CNA_Image            (CNA_Dummy+2)
  39.     /* (strcut Image *) normal image for node. */
  40.  
  41. #define CNA_SelImage        (CNA_Dummy+3)
  42.     /* (strcut Image *) select image for node. */
  43.  
  44. #define CNA_UserData        (CNA_Dummy+4)
  45.     /* (APRR) user data, use as desired. */
  46.  
  47. #define CNA_Separator        (CNA_Dummy+5)
  48.     /* (BOOL) Render a separator bar. */
  49.  
  50. #define CNA_Disabled        (CNA_Dummy+6)
  51.     /* (BOOL) Disabled entry... */
  52.  
  53. #define CNA_BGPen            (CNA_Dummy+7)
  54.     /* (WORD) Background Pen. (not implemented) */
  55.  
  56. #define CNA_FGPen            (CNA_Dummy+8)
  57.     /* (WORD) Foreground Pen. (not implemented) */
  58.  
  59. #define CNA_ReadOnly        (CNA_Dummy+9)
  60.     /* (BOOL) Non-selectable entry... */
  61.  
  62. /*****************************************************************************/
  63.  
  64. /* Additional attributes defined by the Chooser class
  65.  */
  66. #define CHOOSER_Dummy        (REACTION_Dummy+0x0001000)
  67.  
  68. #define CHOOSER_PopUp        (CHOOSER_Dummy+1)
  69.     /* (BOOL) Make it a popup menu.  Default to TRUE. */
  70.  
  71. #define CHOOSER_DropDown    (CHOOSER_Dummy+2)
  72.     /* (BOOL) Make it a dropdown menu.  Defaults to FALSE. */
  73.  
  74. #define CHOOSER_Title        (CHOOSER_Dummy+3)
  75.     /* (STRPTR) Title for the DropDown.  Defaults to NULL. */
  76.  
  77. #define CHOOSER_Labels        (CHOOSER_Dummy+4)
  78.     /* (struct List *) Exec List of labels, required. */
  79.  
  80. #define CHOOSER_Active        (CHOOSER_Dummy+5)
  81.     /* (WORD) Active label in the list.  Defaults to 0. */
  82. #define CHOOSER_Selected    (CHOOSER_Active)
  83.     /* A more logical NEW NAME for the above. */
  84.  
  85. #define CHOOSER_Width        (CHOOSER_Dummy+6)
  86.     /* (WORD) The width of the popup menu. Defaults to the width of the
  87.      * gadget. */
  88.  
  89. #define CHOOSER_AutoFit        (CHOOSER_Dummy+7)
  90.     /* (BOOL) Make the menu automatically fit its labels. Defaults to FALSE. */
  91.  
  92. #define CHOOSER_MaxLabels    (CHOOSER_Dummy+9)
  93.     /* (WORD) Maximum number of labels to be shown in the menu regardless
  94.      * of how many are in the CHOOSER_Labels list.   Defaults to 12.*/
  95.  
  96. #define CHOOSER_Offset        (CHOOSER_Dummy+10)
  97.     /* (WORD) Add a fixed value offset to the CHOOSE_Selected value
  98.      * for notification methods. This is useful in connecting a Chooser
  99.      * with item id's 0 thru 11 to a Calendar's month which is 1 thru 12.
  100.      * In that situation, a CHOOSER_Offset of 1 would be used to match
  101.      * the starting offsets of the respective tags.
  102.      * Defaults to 0.  (V41) */
  103.  
  104. #define CHOOSER_Hidden        (CHOOSER_Dummy+11)
  105.     /* (BOOL) If set, the chooser will not render its main body, and you
  106.      * may call the Show/HideChooser functions to popup the chooser under
  107.      * under the mouse pointer.
  108.      * Defaults to FALSE.  (V42 prelease - V41.101 or later) */
  109.  
  110. #endif /* GADGETS_CHOOSER_H */
  111.